package com.hd.pzhwlxt.pojo;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
@create: 2022-09-22 11:15
@author: 怀念天空
@Description: 
*/

/**
    * 货物信息基本表
    */
@Data
@AllArgsConstructor
@NoArgsConstructor
@TableName(value = "goods_tbl")
public class Goods {
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    /**
     * 条形码编号
     */
    @TableField(value = "bar_code_num")
    private String barCodeNum;

    /**
     * 货物类型
     */
    @TableField(value = "goods_type")
    private String goodsType;

    /**
     * 名称
     */
    @TableField(value = "goods_name")
    private String goodsName;

    /**
     * 规格参数
     */
    @TableField(value = "typical_specification")
    private String typicalSpecification;

    /**
     * 运输车型
     */
    @TableField(value = "vehicle_type")
    private String vehicleType;

    /**
     * 单位
     */
    @TableField(value = "units")
    private String units;

    /**
     * 堆放类型
     */
    @TableField(value = "pile_up_type")
    private Integer pileUpType;

    /**
     * 堆放占用空间
     */
    @TableField(value = "pile_up_space")
    private Double pileUpSpace;

    @TableField(exist = false)
    private GoodsPrice goodsPrice;

    //供应商
    @TableField("supplier")
    private Integer supplier;

    @TableField(exist = false)
    private Company supplierCompany;
}